<template>
  <section>
    <!--start 面包屑-->
    <div class="location">
      <el-breadcrumb separator="/">
        <el-breadcrumb-item :to="{path:'/index'}">首页</el-breadcrumb-item>
        <el-breadcrumb-item>质物管理</el-breadcrumb-item>
        <el-breadcrumb-item>质物管理</el-breadcrumb-item>
        <el-breadcrumb-item>质押物详情</el-breadcrumb-item>
      </el-breadcrumb>
    </div>
    <!--end 面包屑-->
    <!--start content-->
    <div class="wrap companyWrap" ref="companyWrap">
      <div class="scroll">
        <el-row :gutter="20">
          <el-col :span="24">
            <div class="title">质押信息</div>
          </el-col>
        </el-row>
        <el-row :gutter="20">
          <el-col :span="12">
            <div class="qMRow"><span class="">会员名称：</span><i>会员一</i></div>
          </el-col>
          <el-col :span="12" class="logoDiv">
            <div class="qMRow"><span class="">会员编号：</span><i>HY00001</i></div>
          </el-col>
        </el-row>
        <el-row :gutter="20">
          <el-col :span="12">
            <div class="qMRow"><span class="">仓单质押号：</span><i>ZY00000001</i></div>
          </el-col>
          <el-col :span="12" class="logoDiv">
            <div class="qMRow"><span class="">融资编号：</span><i>RZ0000001</i></div>
          </el-col>
        </el-row>
        <el-row :gutter="20">
          <el-col :span="12">
            <div class="qMRow"><span class="">金融机构：</span><i>平安银行</i></div>
          </el-col>
          <el-col :span="12" class="logoDiv">
            <div class="qMRow"><span class="">仓库名称：</span><i>宝山仓库一</i></div>
          </el-col>
        </el-row>
        <el-row :gutter="20">
          <el-col :span="12">
            <div class="qMRow"><span class="">申请日期：</span><i>2013/0/18 14:00</i></div>
          </el-col>
        </el-row>
        <el-table
          :data="tableData"
          style="width: 100%">
          <el-table-column
            prop="date"
            label="捆包号"
            width="100">
          </el-table-column>
          <el-table-column
            prop="name"
            label="品名"
            width="180">
          </el-table-column>
          <el-table-column
            prop="name"
            label="规格"
            width="180">
          </el-table-column>
          <el-table-column
            prop="name"
            label="材质"
            width="180">
          </el-table-column>
          <el-table-column
            prop="name"
            label="产地"
            width="180">
          </el-table-column>
          <el-table-column
            prop="name"
            label="质押总数量"
            width="180">
          </el-table-column>
          <el-table-column
            prop="name"
            label="质押总重量"
            width="180">
          </el-table-column>
          <el-table-column
            prop="name"
            label="已解压数量"
            width="180">
          </el-table-column>
          <el-table-column
            prop="address"
            label="已解押重量">
          </el-table-column>
        </el-table>
      </div>
    </div>
    <div class="btnBox" :class="{btnBox1:!$store.state.headFold}">
      <el-button @click="cancelFn">返回</el-button>
    </div>
    <!--end content-->
  </section>
</template>

<script>
  import * as companyMsgDatas from '../../../assets/data/companyMsgData';
  import VueCoreImageUpload  from 'vue-core-image-upload';
  export default {
    components: {
      VueCoreImageUpload
    },
    data() {
      return {
        detailedAreaList: [],
        areaProps: {
          value: 'treeCode',
          children: 'children',
          label: 'treeName'
        },
        fontColor: "#03B8CC",

        /* start upload */
        logoImgSrc: "",
        isLogoImgSrc: false,
        uploadUrl: "admin/ftpAjax!uploadFile.htm",
        uploadData: {
          "moduleName": "basic",
          "fileName": ""
        },
        uploading: false,
        canUpload: true,
        /* end upload */
        tableData: [{
          date: '2016-05-02',
          name: '王小虎',
          address: '上海市普陀'
        }]

      }
    },
    methods: {
//--------返回上一级
      cancelFn() {
        this.$router.go(-1)
      }
    },
    created() {

    },
    mounted() {
      this.$refs.companyWrap.style.height = (document.documentElement.clientHeight - 180) + 'px';
      document.querySelector(".companyWrap div").style.height = (document.documentElement.clientHeight - 180) + 'px';

    }
  }
</script>

<style>
  /*质物管理详情  start*/
  .qMRow {
    margin-bottom: 16px;
    height: 34px;
  }

  .qMRow span {
    width: 150px;
    text-align: right;
    vertical-align: middle;
    float: left;
    font-size: 12px;
    color: rgb(72, 98, 106);
    line-height: 1;
    padding: 11px 0px 11px 0;
    box-sizing: border-box;
  }

  .qMRow i {
    text-align: left;
    vertical-align: middle;
    float: left;
    font-size: 12px;
    color: rgb(72, 98, 106);
    line-height: 1;
    padding: 11px 12px 11px 0;
    box-sizing: border-box;
  }

  /*质物管理详情  end*/
  * {
    transition: .2s;
  }

  section {
    display: flex;
    flex-direction: column;
    flex: 1;
  }

  div.location {
    flex: 0 0 10px;
    padding: 3px 0 15px 0;
  }

  div.wrap {
    position: relative;
    flex: 1;
    width: 100%;
    padding: 15px 20px 0 20px;
    box-sizing: border-box;
    background: #fff;
  }

  .scroll {
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 10px;
  }

  .title {
    height: 50px;
    color: #03B8CC;
    font-size: 16px;
  }

  .selectWidth {
    width: 100%;
  }

  .btnBox {
    position: absolute;
    bottom: 10px;
    right: 42px;
    height: 50px;
    background: #fff;
    z-index: 100;
  }

  .btnBox1 {
    left: 98px;
  }

  /* start upload */
  .avatar-uploader {
    position: relative;
    border: 1px dashed #d9d9d9;
    border-radius: 6px;
    cursor: pointer;
    overflow: hidden;
    z-index: 9;
  }

  .avatar-uploader:hover {
    border-color: #03B8CC;
  }

  .avatar-uploader-icon {
    font-size: 20px;
    color: #8c939d;
    width: 95px;
    height: 95px;
    line-height: 95px;
    text-align: center;
  }

  .avatar-uploader .g-core-image-upload-form {
    width: 100% !important;
    height: 100% !important;
    cursor: pointer;
  }

  .avatar-uploader .g-core-image-upload-form > input {
    position: relative;
    top: -4px;
    cursor: pointer;
  }

  .crop-box .g-resize {
    background-color: red !important;
  }

  /* end upload */
</style>
